
package com.ywjg.serviceimp;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ywjg.dao.ReportMessageDao;
import com.ywjg.model.ReportMessage;
import com.ywjg.service.IReportMessageService;

@Service
public class ReportMessageService implements IReportMessageService {
	@Resource
	ReportMessageDao reportMessageDao;
	
	public ReportMessage addReportMessage(ReportMessage reportMessage) {
		ReportMessage save = reportMessageDao.save(reportMessage);
		return save;
	}
	

	public List<ReportMessage> getUserReportMessage(int appUserId) {
		List<ReportMessage> find = reportMessageDao.findByappUserId(appUserId);
		return find;
	}
	
	
	
	
	
}
